import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Demo8 {
	public static void main(String[] args) {
		try(OutputStream outputStream=new FileOutputStream("d:/test.txt",true)) {
			String str="你好世界";
			outputStream.write(str.getBytes());
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
	}
}
